package com.woniu.user.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.user.model.Sign;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 签约表 Mapper 接口
 * </p>
 *
 * @author Silas
 * @since 2023-02-15
 */
public interface SignDao extends BaseMapper<Sign> {

    @Select("SELECT * FROM yoga_sign WHERE user_id = #{userId}")
    IPage<Sign> selectByUserId(Page<Sign> pageInfo, Integer userId);
}
